package com.lx.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommentReplyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CommentReplyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRepIdIsNull() {
            addCriterion("rep_id is null");
            return (Criteria) this;
        }

        public Criteria andRepIdIsNotNull() {
            addCriterion("rep_id is not null");
            return (Criteria) this;
        }

        public Criteria andRepIdEqualTo(Integer value) {
            addCriterion("rep_id =", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdNotEqualTo(Integer value) {
            addCriterion("rep_id <>", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdGreaterThan(Integer value) {
            addCriterion("rep_id >", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rep_id >=", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdLessThan(Integer value) {
            addCriterion("rep_id <", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdLessThanOrEqualTo(Integer value) {
            addCriterion("rep_id <=", value, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdIn(List<Integer> values) {
            addCriterion("rep_id in", values, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdNotIn(List<Integer> values) {
            addCriterion("rep_id not in", values, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdBetween(Integer value1, Integer value2) {
            addCriterion("rep_id between", value1, value2, "repId");
            return (Criteria) this;
        }

        public Criteria andRepIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rep_id not between", value1, value2, "repId");
            return (Criteria) this;
        }

        public Criteria andCommentIdIsNull() {
            addCriterion("comment_id is null");
            return (Criteria) this;
        }

        public Criteria andCommentIdIsNotNull() {
            addCriterion("comment_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommentIdEqualTo(Integer value) {
            addCriterion("comment_id =", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotEqualTo(Integer value) {
            addCriterion("comment_id <>", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThan(Integer value) {
            addCriterion("comment_id >", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_id >=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThan(Integer value) {
            addCriterion("comment_id <", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("comment_id <=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdIn(List<Integer> values) {
            addCriterion("comment_id in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotIn(List<Integer> values) {
            addCriterion("comment_id not in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("comment_id between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_id not between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andUIdIsNull() {
            addCriterion("u_id is null");
            return (Criteria) this;
        }

        public Criteria andUIdIsNotNull() {
            addCriterion("u_id is not null");
            return (Criteria) this;
        }

        public Criteria andUIdEqualTo(Integer value) {
            addCriterion("u_id =", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotEqualTo(Integer value) {
            addCriterion("u_id <>", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThan(Integer value) {
            addCriterion("u_id >", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("u_id >=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThan(Integer value) {
            addCriterion("u_id <", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThanOrEqualTo(Integer value) {
            addCriterion("u_id <=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdIn(List<Integer> values) {
            addCriterion("u_id in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotIn(List<Integer> values) {
            addCriterion("u_id not in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdBetween(Integer value1, Integer value2) {
            addCriterion("u_id between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotBetween(Integer value1, Integer value2) {
            addCriterion("u_id not between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUNameIsNull() {
            addCriterion("u_name is null");
            return (Criteria) this;
        }

        public Criteria andUNameIsNotNull() {
            addCriterion("u_name is not null");
            return (Criteria) this;
        }

        public Criteria andUNameEqualTo(String value) {
            addCriterion("u_name =", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameNotEqualTo(String value) {
            addCriterion("u_name <>", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameGreaterThan(String value) {
            addCriterion("u_name >", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameGreaterThanOrEqualTo(String value) {
            addCriterion("u_name >=", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameLessThan(String value) {
            addCriterion("u_name <", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameLessThanOrEqualTo(String value) {
            addCriterion("u_name <=", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameLike(String value) {
            addCriterion("u_name like", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameNotLike(String value) {
            addCriterion("u_name not like", value, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameIn(List<String> values) {
            addCriterion("u_name in", values, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameNotIn(List<String> values) {
            addCriterion("u_name not in", values, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameBetween(String value1, String value2) {
            addCriterion("u_name between", value1, value2, "uName");
            return (Criteria) this;
        }

        public Criteria andUNameNotBetween(String value1, String value2) {
            addCriterion("u_name not between", value1, value2, "uName");
            return (Criteria) this;
        }

        public Criteria andUImageIsNull() {
            addCriterion("u_image is null");
            return (Criteria) this;
        }

        public Criteria andUImageIsNotNull() {
            addCriterion("u_image is not null");
            return (Criteria) this;
        }

        public Criteria andUImageEqualTo(String value) {
            addCriterion("u_image =", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageNotEqualTo(String value) {
            addCriterion("u_image <>", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageGreaterThan(String value) {
            addCriterion("u_image >", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageGreaterThanOrEqualTo(String value) {
            addCriterion("u_image >=", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageLessThan(String value) {
            addCriterion("u_image <", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageLessThanOrEqualTo(String value) {
            addCriterion("u_image <=", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageLike(String value) {
            addCriterion("u_image like", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageNotLike(String value) {
            addCriterion("u_image not like", value, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageIn(List<String> values) {
            addCriterion("u_image in", values, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageNotIn(List<String> values) {
            addCriterion("u_image not in", values, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageBetween(String value1, String value2) {
            addCriterion("u_image between", value1, value2, "uImage");
            return (Criteria) this;
        }

        public Criteria andUImageNotBetween(String value1, String value2) {
            addCriterion("u_image not between", value1, value2, "uImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdIsNull() {
            addCriterion("replyuser_id is null");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdIsNotNull() {
            addCriterion("replyuser_id is not null");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdEqualTo(Integer value) {
            addCriterion("replyuser_id =", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdNotEqualTo(Integer value) {
            addCriterion("replyuser_id <>", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdGreaterThan(Integer value) {
            addCriterion("replyuser_id >", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("replyuser_id >=", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdLessThan(Integer value) {
            addCriterion("replyuser_id <", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdLessThanOrEqualTo(Integer value) {
            addCriterion("replyuser_id <=", value, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdIn(List<Integer> values) {
            addCriterion("replyuser_id in", values, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdNotIn(List<Integer> values) {
            addCriterion("replyuser_id not in", values, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdBetween(Integer value1, Integer value2) {
            addCriterion("replyuser_id between", value1, value2, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("replyuser_id not between", value1, value2, "replyuserId");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameIsNull() {
            addCriterion("replyuser_name is null");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameIsNotNull() {
            addCriterion("replyuser_name is not null");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameEqualTo(String value) {
            addCriterion("replyuser_name =", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameNotEqualTo(String value) {
            addCriterion("replyuser_name <>", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameGreaterThan(String value) {
            addCriterion("replyuser_name >", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameGreaterThanOrEqualTo(String value) {
            addCriterion("replyuser_name >=", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameLessThan(String value) {
            addCriterion("replyuser_name <", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameLessThanOrEqualTo(String value) {
            addCriterion("replyuser_name <=", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameLike(String value) {
            addCriterion("replyuser_name like", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameNotLike(String value) {
            addCriterion("replyuser_name not like", value, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameIn(List<String> values) {
            addCriterion("replyuser_name in", values, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameNotIn(List<String> values) {
            addCriterion("replyuser_name not in", values, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameBetween(String value1, String value2) {
            addCriterion("replyuser_name between", value1, value2, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserNameNotBetween(String value1, String value2) {
            addCriterion("replyuser_name not between", value1, value2, "replyuserName");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageIsNull() {
            addCriterion("replyuser_image is null");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageIsNotNull() {
            addCriterion("replyuser_image is not null");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageEqualTo(String value) {
            addCriterion("replyuser_image =", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageNotEqualTo(String value) {
            addCriterion("replyuser_image <>", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageGreaterThan(String value) {
            addCriterion("replyuser_image >", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageGreaterThanOrEqualTo(String value) {
            addCriterion("replyuser_image >=", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageLessThan(String value) {
            addCriterion("replyuser_image <", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageLessThanOrEqualTo(String value) {
            addCriterion("replyuser_image <=", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageLike(String value) {
            addCriterion("replyuser_image like", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageNotLike(String value) {
            addCriterion("replyuser_image not like", value, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageIn(List<String> values) {
            addCriterion("replyuser_image in", values, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageNotIn(List<String> values) {
            addCriterion("replyuser_image not in", values, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageBetween(String value1, String value2) {
            addCriterion("replyuser_image between", value1, value2, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andReplyuserImageNotBetween(String value1, String value2) {
            addCriterion("replyuser_image not between", value1, value2, "replyuserImage");
            return (Criteria) this;
        }

        public Criteria andPraseCountIsNull() {
            addCriterion("prase_count is null");
            return (Criteria) this;
        }

        public Criteria andPraseCountIsNotNull() {
            addCriterion("prase_count is not null");
            return (Criteria) this;
        }

        public Criteria andPraseCountEqualTo(Integer value) {
            addCriterion("prase_count =", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotEqualTo(Integer value) {
            addCriterion("prase_count <>", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThan(Integer value) {
            addCriterion("prase_count >", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("prase_count >=", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThan(Integer value) {
            addCriterion("prase_count <", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThanOrEqualTo(Integer value) {
            addCriterion("prase_count <=", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountIn(List<Integer> values) {
            addCriterion("prase_count in", values, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotIn(List<Integer> values) {
            addCriterion("prase_count not in", values, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountBetween(Integer value1, Integer value2) {
            addCriterion("prase_count between", value1, value2, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotBetween(Integer value1, Integer value2) {
            addCriterion("prase_count not between", value1, value2, "praseCount");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}